package com.zhilifang.modules.zlf.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhilifang.modules.zlf.dao.BannerMapper;
import com.zhilifang.modules.zlf.entity.Banner;
import com.zhilifang.modules.zlf.service.BannerService;

import java.util.List;

@Service("bannerService")
public class BannerServiceImpl implements BannerService {

    @Autowired
    private BannerMapper bannerMapper;

	@Override
	public List<Banner> selectBannerListr() {
		// TODO Auto-generated method stub
		return bannerMapper.selectBannerListr();
	}

	@Override
	public List<Banner> selectBannerListrAll() {
		// TODO Auto-generated method stub
		return bannerMapper.selectBannerListrAll();
	}

	@Override
	public void deleteBanner(Integer id) {
		// TODO Auto-generated method stub
		bannerMapper.deleteBanner(id);
	}

	@Override
	public void updateBanner(Banner banner) {
		// TODO Auto-generated method stub
		bannerMapper.updateBanner(banner);
	}

	@Override
	public int insertBanner(Banner banner) {
		// TODO Auto-generated method stub
		return bannerMapper.insertBanner(banner);
	}


}